<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>   
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>更新学生信息 </title>
</head>
<body>

<table align="center" border="1" width="1024px" >
	<thead>
		<tr >
			
			<a href="<%=request.getContextPath() %>/stu/list">学生列表页面</a> |
				<a href="<%=request.getContextPath() %>/stu/inport">导入学生列表</a> |
				<a href="<%=request.getContextPath() %>/stu/export">导出学生列表</a>|
				<a href="<%=request.getContextPath() %>/stu/publishs">查询所有处罚学生信息</a> | 
				<a href="<%=request.getContextPath() %>/stu/rewards">查询所有处罚学生信息</a> |
			</td>
			
		</tr>
	</thead>
	
	<!-- 数据信息 -->
	<tbody>
		
		
	<form:form modelAttribute="student" action="" method="post">
		<tr>
			<td>
				学号 ：
			</td>
			<td>
				<form:input path="xh" /><form:errors path="xh" cssClass="errorMsg" ></form:errors>
			</td>										
		</tr>
		<tr>
			<td>
				学生姓名：
			</td>
			<td>
				<form:input path="name" /><form:errors path="name" cssClass="errorMsg"></form:errors>
			</td>											
		</tr>
		
		<tr>
			<td>
				考试号：
			</td>
			<td>
				<form:input path="ksh" /><form:errors path="ksh" cssClass="errorMsg"></form:errors>
			</td>
			
		</tr>
		
		<tr>
			<td>
				性别：
			</td>
			<td>  
				<form:input path="sex" /><form:errors path="sex" ></form:errors>
			</td>												
		</tr>
		
		<tr>
			<td>
				状态：
			</td>
			<td> 		
			   <select name="status">
				<option value="1" selected=" <c:if test="${stu.status eq 1}">selected</c:if>"> 在校 </option>
				<option value="0" selected=" <c:if test="${stu.status eq 0}">selected</c:if>"> 离校 </option>			
			 </select>
			</td>												
		</tr>
		
		<tr>
			<td>
				<input type="submit" value="添加" /> 
			</td>
			<td>
				<input type="reset" value="取消" />
			</td>
		</tr>
			
	</form:form><%--	
		<form action="" method="post">
		<tr><td>学号：</td><td><input name="xh" value="${stu.xh }"> </td></tr>
		<tr><td>学生姓名：</td><td><input name="name"  value="${stu.name }"></td></tr>
		<tr><td>考试号:</td><td><input name="ksh" value="${stu.ksh }"></td></tr>
		<tr><td>性别:</td><td><input name="sex" value="${stu.sex }"></td></tr>
		<tr><td>状态：</td><td><select name="status">
				<option value="1" selected=" <c:if test="${stu.status eq 1}">selected</c:if>"> 在校 </option>
				<option value="0" selected=" <c:if test="${stu.status eq 0}">selected</c:if>"> 离校 </option>			
			 </select></td></tr>
			 
			<tr><td> <input type="submit" value="提交" /> </td>
			<td> <input type="reset" value="取消" /></td></tr>
		
		</form>		
	--%></tbody>
</table>

</body>
</html>